const state ={
  user:null
}

const mutations={
  saveUser(state,name){
      state.user=name
      console.log(state.user)
  },
  deleteUser(state){
      state.user=null
  }
}
export default {
  namespaced:true,
  state,
  mutations
}